package de.tuhrig.sportlog.exceptions;

import java.io.*;

import javax.servlet.http.*;

public class ExceptionLogger {

	public void log(Exception ex, HttpServletResponse resp) throws IOException {

		resp.getWriter().println("<h2>Error</h2>");
		resp.getWriter().println("<p>" + ex.getMessage() + "</p>");
		
		resp.getWriter().println("<p>");
		
			ex.printStackTrace(resp.getWriter());
			
		resp.getWriter().println("</p>");
	}

}
